package com.netease.nie.dao;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import com.netease.nie.mapper.TopicMapper;
import com.netease.nie.model.Topic;

@Repository
public class TopicDao {

	@Resource
	private TopicMapper topicMapper;
	
	public List<Topic> queryAllTopics() {
		return topicMapper.queryAllTopics();
	}
	
	public Topic queryTopicById(int id) {
		return topicMapper.queryTopicById(id);
	}
}
